#ifndef NANE_IMAGECODECMANAGER_H
#   define  NANE_IMAGECODECMANAGER_H

#   include "nane/CodecSystem/Image/ImageCodecSystem.h"
#   include "nane/core/Manager.h"

namespace nane 
{
    struct ImageCodecCompareExtension
    {
        std::string extension;
        
        ImageCodecCompareExtension( const std::string& _filename )
        {
            size_t pos = _filename.rfind('.');
            if( pos != std::string::npos )
            {
                extension = _filename.substr(pos+1);
            }
        }
        
        bool operator()( const std::string& _key )
        {
            return extension == _key;
        }
    };
    
    typedef Manager<std::string, ImageCodecSystem, ImageCodecCompareExtension> ImageCodecManager;
}   // namespace nane

#endif	// NANE_IMAGECODECMANAGER_H
